<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>用户信息列表</title>
    <#include "/back/common.html">
    <script type="text/javascript" src="/back/js/system/user.js"></script>
</head>

<body class="">
<div class="x-body">
    <div class="layui-row demoTable">
        <div class="layui-col-md12 x-so ">
            <input name="name" id="name" placeholder="用户名称" autocomplete="off" class="layui-input">
            <input name="phone" id="phone" placeholder="手机号" autocomplete="off" class="layui-input">
            <button class="layui-btn" data-type="reload"><i class="layui-icon">&#xe615;</i></button>
            <button class="layui-btn" onclick="javascript:location.replace(location.href);">刷新</button>
        </div>
    </div>
    <table id="userTable" class="layui-table" lay-filter="test"></table>
</div>

<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-radius" lay-event="addNewUser">
            <i class="layui-icon">&#xe654;</i> 添加
        </button>
        <button class="layui-btn layui-btn-radius layui-btn-warm" lay-event="updateNewUser">
            <i class="layui-icon">&#xe642;</i> 修改
        </button>
        <button class="layui-btn layui-btn-radius layui-btn-danger" lay-event="resetPassword">
            <i class="layui-icon">&#xe640;</i> 密码重置
        </button>
    </div>
</script>

<script type="text/html" id="switchTpl">
    <input type="checkbox" name="status" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="sexCheck"
           data-json="{{ encodeURIComponent(JSON.stringify(d)) }}" {{ d.status== '启用' ? 'checked' : '' }}>
</script>
</body>
</html>